package com.markbuikema.juliana32.enums;

public enum CompType {

	REGULAR("R"), CUP("B"), PLAYOFF("N"), FRIENDLY("V");
	
	private String letter;
	
	private CompType(String letter) {
		this.letter = letter;
	}
	
	public static CompType get(String letter) {
		for (int i = 0; i < values().length; i++) {
			if (letter.equals(values()[i].letter))
				return values()[i];
		}
		return null;
	}
	
	@Override
	public String toString() {
		return letter;
	}
}
